package com.sunxu.spring.el;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author 孙许
 * @date 2018-07-14
 * @description
 */
public class Application {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");

        ShopList list = (ShopList) context.getBean("list");
        System.out.println(list);

        list = (ShopList) context.getBean("list2");
        System.out.println(list);

        list = (ShopList) context.getBean("list3");
        System.out.println(list);

        list = (ShopList) context.getBean("list4");
        System.out.println(list);

        list = (ShopList) context.getBean("list5");
        System.out.println(list);

        list = (ShopList) context.getBean("list6");
        System.out.println(list);

        list = (ShopList) context.getBean("list7");
        System.out.println(list);

        list = (ShopList) context.getBean("list8");
        System.out.println(list);

        list = (ShopList) context.getBean("list9");
        System.out.println(list);

        list = (ShopList) context.getBean("list10");
        System.out.println(list);

        list = (ShopList) context.getBean("list11");
        System.out.println(list);

        list = (ShopList) context.getBean("list12");
        System.out.println(list);
    }
}
